]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Clean up tools' dependencies
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Aug 2018 11:43:59 +0000 (13:43 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 14 Aug 2018 17:28:03 +0000 (17:28 +0000)
Simply reusing the same dependencies as gnome-shell itself not only
means that we link tons of stuff unnecessarily, but also that we
have to do the whole mutter rpath dance for nothing. Just use the
dependencies those executables actually need for a nice cleanup.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/192

src/meson.build

index 2670f589ca167dd6495f6379032eda84e8fa5471..8cd7fe8cf9ef2ab8827543bc397d52543e1f688f 100644 (file)
@@ -59,6 +59,9 @@ gnome_shell_deps = [
 gnome_shell_deps += nm_deps
 gnome_shell_deps += recorder_deps
 
+tools_cflags = '-DLOCALEDIR="@0@"'.format(localedir)
+tools_deps = [gio_dep, gjs_dep]
+
 libshell_menu_gir_sources = [
   'gtkactionmuxer.h',
   'gtkactionmuxer.c',
@@ -259,11 +262,9 @@ executable('gnome-shell', 'main.c',
 
 executable('gnome-shell-extension-prefs',
   'gnome-shell-extension-prefs.c', js_resources,
-  c_args: gnome_shell_cflags,
-  dependencies: gnome_shell_deps,
+  c_args: tools_cflags,
+  dependencies: tools_deps,
   include_directories: [conf_inc],
-  build_rpath: mutter_typelibdir,
-  install_rpath: install_rpath,
   install: true
 )
 
@@ -271,11 +272,9 @@ executable('gnome-shell-extension-prefs',
 if have_networkmanager
   executable('gnome-shell-portal-helper',
     'gnome-shell-portal-helper.c', js_resources,
-    c_args: gnome_shell_cflags,
-    dependencies: gnome_shell_deps,
+    c_args: tools_cflags,
+    dependencies: tools_deps,
     include_directories: [conf_inc],
-    build_rpath: mutter_typelibdir,
-    install_rpath: install_rpath,
     install_dir: libexecdir,
     install: true
   )
@@ -284,8 +283,6 @@ endif
 executable('gnome-shell-perf-helper', 'shell-perf-helper.c',
   dependencies: [gtk_dep, gio_dep, m_dep],
   include_directories: [conf_inc],
-  build_rpath: mutter_typelibdir,
-  install_rpath: install_rpath,
   install_dir: libexecdir,
   install: true
 )